<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include/commonPage.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>品牌添加-商城后台</title>
	<%@ include file="/common/include/title.jsp"%>
	<script language="javascript" type="text/javascript" src="${rootpath }/common/resource/My97DatePicker/WdatePicker.js"></script>
	
	<script type="text/javascript" charset="utf-8" src="${rootpath }/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="${rootpath }/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="${rootpath }/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
	<div class="pd-20">
		<form action="${rootpath}/back/goods/brandInsertSubmit.html" method="post" class="form form-horizontal"
			id="form-article-add" enctype="multipart/form-data">
			<div class="row cl">
				<div class="col-10 col-offset-2">
					<button class="btn btn-primary radius" type="submit">
						<i class="Hui-iconfont">&#xe632;</i> 保存
					</button>
					${info}
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2"><span class="c-red">*</span>名称：</label>
				<div class="formControls col-10">
					<input type="text" class="input-text" value="" placeholder="" id=""
						name="name">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">网站：</label>
				<div class="formControls col-10">
					<input type="text" class="input-text" value="" placeholder="" id=""
						name="website">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2"><span class="c-red">*</span>发布时间：</label>
				<div class="formControls col-2">
					<%--设置默认当前时间 --%>
					<input name="pubTimeStr" class="input-text" value="<fmt:formatDate value="${sys_now }" pattern="yyyy-MM-dd HH:mm:ss"/>" style="width:150px;" type="text" placeholder="发布时间" 
					onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2"><span class="c-red">*</span>状态：</label>
				<div class="formControls col-2">
					<input type="radio" name="status" id="status1" value="1" checked="checked"><label for="status1">启用</label>
					<input type="radio" name="status" id="status0" value="0"><label for="status0">禁用</label>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2"><span class="c-red">*</span>LOGO：</label>
				<div class="formControls col-2">
					<input name="file" class="input-text" type="file"/>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">内容：</label>
				<div class="formControls col-10">
					<%---使用百度内容编辑器 --%>
					<script id="editor" type="text/plain" name="content" style="width: 100%; height: 400px;"></script>
				</div>
			</div>
		</form>
	</div>
	</div>
	</body>
</html>
<script type="text/javascript">
	//实例化百度编辑器
	//推荐使用工厂的getEditor创建和引用编辑器的实例,如果在闭包下引用该编辑器,直接使用UE.getEditor('editor')获取实例
	//editor是指id为editor百度编辑器的位置
	var ed=UE.getEditor('editor');
</script>